package data_jdbc;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Component
// 原型模式，类似于传统的new
@Scope("prototype")
public class User {
    long id;
    String name;
    String password;
    String email;
}
